#ifndef NUMBERKEYBOARD_H
#define NUMBERKEYBOARD_H

#include <QWidget>
#include <QPushButton>
#include <QSignalMapper>

namespace Ui {
class NumberKeyBoard;
}

class NumberKeyBoard : public QWidget
{
    Q_OBJECT

public:
    explicit NumberKeyBoard(QWidget *parent = nullptr);
    ~NumberKeyBoard();
private:
    Ui::NumberKeyBoard *ui;
signals:
    void setNumber(int);
    void backspace();
    void ack();
    void cancel();
private slots:
    void on_Btn_Del_pressed();
    void on_Btn_Confirm_pressed();
    void on_Btn_Cancel_pressed();
private:
    QList<QPushButton*> m_lNumBtnList;
    QSignalMapper *m_pSignalMapper=nullptr;
};

#endif // NUMBERKEYBOARD_H
